.ui-tip-up-black {
  width: auto;
  height: auto;
  padding: 0.3rem;
  margin: 0 auto;
  position: relative;
  text-align: center;
  border-radius: 5px;
}

.ui-tip-up-black::after,
.ui-tip-up-black::before {
  content: '';
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-width: 0.25rem;
  border-style: solid;
}

.ui-tip {
  width: auto;
  height: auto;
  padding: 0.3rem;
  margin: 0 auto;
  position: relative;
  text-align: center;
  border-radius: 5px;
}

.ui-tip-arrow::before,
.ui-tip-arrow::after {
  content: '';
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-width: 0.25rem;
  border-style: solid;
}

.ui-tip-arrow.ui-tip-arrow-up::after {
  border-left-color: transparent;
  border-top-color: transparent;
  bottom: 100%;
  right: 50%;
}

.ui-tip-arrow.ui-tip-arrow-up::before {
  border-right-color: transparent;
  border-top-color: transparent;
  bottom: 100%;
  left: 50%;
}

/* arrow down */
.ui-tip-arrow.ui-tip-arrow-down::after {
  border-left-color: transparent;
  border-bottom-color: transparent;
  right: 50%;
  top: 100%;
}

.ui-tip-arrow.ui-tip-arrow-down::before {
  border-right-color: transparent;
  border-bottom-color: transparent;
  left: 50%;
  top: 100%;
}

.ui-theme-black {
  background-color: rgba(48, 48, 48, 1);
  color: white;
}

.ui-theme-black::after,
.ui-theme-black::before {
  border-color: rgba(48, 48, 48, 1);
}

.wrapper {
  text-transform: uppercase;
  background: #ececec;
  color: #555;
  cursor: help;
  font-family: 'Gill Sans', Impact, sans-serif;
  font-size: 20px;
  margin: 100px 75px 10px 75px;
  padding: 15px 20px;
  position: relative;
  text-align: center;
  width: 200px;
  -webkit-transform: translateZ(0); /* webkit flicker fix */
  -webkit-font-smoothing: antialiased; /* webkit text rendering fix */
}

.wrapper .tooltip {
  background: #1496bb;
  bottom: 100%;
  color: #fff;
  display: block;
  left: -25px;
  margin-bottom: 15px;
  opacity: 0;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  width: 100%;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  -ms-transform: translateY(10px);
  -o-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-transition: all 0.25s ease-out;
  -moz-transition: all 0.25s ease-out;
  -ms-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
  -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
}

/* This bridges the gap so you can mouse into the tooltip without it disappearing */
.wrapper .tooltip::before {
  bottom: -20px;
  content: ' ';
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;
}

/* CSS Triangles - see Trevor's post */
.wrapper .tooltip::after {
  border-left: solid transparent 10px;
  border-right: solid transparent 10px;
  border-top: solid #1496bb 10px;
  bottom: -10px;
  content: ' ';
  height: 0;
  left: 50%;
  margin-left: -13px;
  position: absolute;
  width: 0;
}

.wrapper:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* IE can just show/hide with no transition */
.lte8 .wrapper .tooltip {
  display: none;
}

.lte8 .wrapper:hover .tooltip {
  display: block;
}
